head = '\includegraphics[height=2.40cm]{horse/horse';
fn = '%03d';
fm = {'.png', '_dpm.png', '_skt.png'};

for i =0:6:164
	for t = 1:3
		disp('\centerline{')

		for j =1:6
			str  = sprintf(fn, i+j );
			disp([head str fm{t} '}']);
		end

		disp('}')
	end
end